<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript能够隐藏HTML元素</title>
</head>
<body>
    <h2>JavaScript 能够做什么</h2>
    <p id="demo">JavaScript 能够隐藏 HTML 元素。</p>
    <button type="button" onclick="document.getElementById('demo').style.display='none'">
点击我！
</button>
</body>
</html>